public class Exrecise3 {
    public static void main(String[] args) {
        //int x = 2;
        for (int j=2; j<101; j++) {
            if (isPrimeNumber(j)) {
                System.out.print(j+" ");
            }
        }

    }

    public static boolean isPrimeNumber (int a) {
        for (int i = 2; i < a; i++) {
            if (a % i == 0) {
                return false;
            }
        }
        return true;
    }
}
